home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / quicktimeintro / sequence grabbing / completed lab / sequencegrab.h < prev   
Encoding:
C/C++ Source or Header  |  2000-10-06  |  1.4 KB  |  45 lines

  1. #ifndef __SEQUENCEGRAB__
  2.     #define __SEQUENCEGRAB__
  3.  
  4. // build for carbon
  5. #ifndef TARGET_API_MAC_CARBON
  6.     #define TARGET_API_MAC_CARBON 1
  7. #endif
  8.  
  9. // includes
  10. #include <Gestalt.h>
  11. #include <ConditionalMacros.h>
  12. #include <Movies.h>
  13. #include <QuickTimeComponents.h>
  14. #include <Script.h>
  15. #include <FileTypesAndCreators.h>
  16. #include <Navigation.h>
  17.  
  18. #if TARGET_OS_MAC
  19.     #define PASCAL_RTN pascal
  20. #else
  21.     #define PASCAL_RTN
  22. #endif
  23.  
  24. #if TARGET_OS_MAC
  25.     typedef WindowPtr            WindowReference;
  26. #endif
  27.  
  28. #if TARGET_OS_WIN32
  29.     typedef HWND                WindowReference;
  30. #endif
  31.  
  32. const StringPtr kApplicationName = "\pSequenceGrab";
  33.  
  34. // prototypes
  35. Boolean IsQuickTimeInstalled(void);
  36. WindowRef MakeAWindow(void);
  37. SeqGrabComponent MakeSequenceGrabber(WindowPtr pMacWnd);
  38. void MakeSequenceGrabChannels(SeqGrabComponent seqGrab, SGChannel *sgchanVideo, SGChannel *sgchanSound, const Rect *rect, Boolean bWillRecord);
  39. OSErr SetupVideoBottlenecks(SGChannel sgchanVideo, CGrafPtr pTempPort);
  40. OSErr DoRecord(SeqGrabComponent seqGrab);
  41. PASCAL_RTN ComponentResult GrabFrameCompleteProc(SGChannel sgChan, short nBufferNum, Boolean *pbDone, long lRefCon);
  42. OSErr PutFile(ConstStr255Param thePrompt, ConstStr255Param theFileName, FSSpecPtr theFSSpecPtr, Boolean *theIsSelected, Boolean *theIsReplacing);
  43. PASCAL_RTN void HandleNavEvent (NavEventCallbackMessage theCallBackSelector, NavCBRecPtr theCallBackParms, void *theCallBackUD);
  44.  
  45. #endif // __SEQUENCEGRAB__